package com.yunji.cabinet.service;

import com.yunji.base.vo.UpgradeFileVO;
import com.yunji.cabinet.domain.UpgradeFileDO;
import com.yunji.cabinet.params.CabinetVersionParam;

import java.util.List;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.cabinet.service.impl
 * @Title: ICabinetVersionService
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-07-01 14:05:27      V1.0        HuaAo       新建类
 */

public interface IUpgradeFileService {

    boolean create(UpgradeFileDO version);

    List<UpgradeFileVO> searchVO(CabinetVersionParam param);

    UpgradeFileDO select(Long fileId);

    UpgradeFileVO selectVO(Long fileId);

    boolean checkUniqueName(Long fileId, String fileName);

    boolean update(UpgradeFileDO bo);

    boolean delete(Long fileId);

    byte[] selectPack(Long fileId);
}